package edu.whu.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import edu.whu.demo.domain.ActivityDTO;
import edu.whu.demo.domain.Entry;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.whu.demo.domain.User;
import edu.whu.demo.exception.ActivityMemberException;
import edu.whu.demo.exception.EntryException;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author
 * @since 2022-12-06
 */
public interface IEntryService extends IService<Entry> {

    IPage<User> getMembers(Long activityId,
                           String keyword,
                           Integer pageNum,
                           Integer pageSize);

    IPage<ActivityDTO> getActivityByEntry(Map<String, Object> condition,
                                          Integer pageNum,
                                          Integer pageSize);

    void delEntry(Entry entry) throws EntryException, ActivityMemberException;


}
